<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet">
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
<script>
function audall(){
	var codewebarr="";
	$(".check_all:checked").each(function(){ 
		if(codewebarr==""){codewebarr=$(this).val();}else{codewebarr=codewebarr+","+$(this).val();}
	});
	if(codewebarr==""){
		parent.layer.msg('您还未选择任何信息！', 2, 8);	return false;
	}else{
		$("input[name=uid]").val(codewebarr);
 		$("#statusbody").val('');
		$("input[name='status']").attr('checked',false);
		 layui.use(['form'],function(){
			var form = layui.form;
			form.render();
		});
		$.layer({
			type : 1,
			title :'培训用户审核', 
			closeBtn : [0 , true],
			border : [10 , 0.3 , '#000', true],
			area : ['390px','260px'],
			page : {dom :"#infobox2"}
		});
	}
}
$(function(){
	$(".status").click(function(){
  		var uid=$(this).attr("pid");
		var pytoken=$("#pytoken").val();
		var status=$(this).attr("status");
		$("#status_"+status).attr("checked",true);
		 layui.use(['form'],function(){
			var form = layui.form;
			form.render();
		});
		$("input[name=uid]").val(uid);
		$.post("index.php?m=train_member&c=lockinfo",{pytoken:pytoken,uid:uid},function(msg){
			$("#lock_info").val(msg);
			status_div('锁定用户','390','260');
		});
	});
	$(".user_status").click(function(){
		var uid=$(this).attr("pid");
		var status=$(this).attr("status");
		$("#status"+status).attr("checked",true);
		 layui.use(['form'],function(){
			var form = layui.form;
			form.render();
		});
		var pytoken=$("#pytoken").val();
		$("input[name=uid]").val(uid);
		var pytoken=$("#pytoken").val();
		$.post("index.php?m=train_member&c=lockinfo",{pytoken:pytoken,uid:uid},function(msg){
			$("#statusbody").val(msg);
			$.layer({
				type : 1,
				title :'培训用户审核', 
				closeBtn : [0 , true],
				border : [10 , 0.3 , '#000', true],
				area : ['390px','260px'],
				page : {dom :"#infobox2"}
			});
		});
		
	});
});
</script>
<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<title>后台管理</title>
</head>
<body class="body_ifm">
{yun:}include file="$adminstyle/member_send_email.htm"{/yun}
<div id="status_div"  style="display:none; width: 350px; ">
  <div class="">
    <form class="layui-form" action="index.php?m=train_member&c=lock" target="supportiframe" method="post" id="formstatus">
      <table cellspacing='1' cellpadding='1' class="admin_examine_table">
        <tr>
          <th width="80">锁定操作：</th>
          <td align="left">
            
            <div class="layui-form-item">
              <div class="layui-input-block">
                <div class="layui-input-inline">
                  <input name="status" id="status_1" value="1" title="正常" type="radio"/>
                  <input name="status" id="status_2" value="2" title="锁定" type="radio"/>
                </div>
              </div>
            </div></td>
        </tr>
        <tr>
          <th>锁定说明：</th>
          <td align="left"><textarea id="lock_info"  name="lock_info" class="admin_explain_textarea"></textarea></td>
        </tr>
        <tr>
          <td colspan='2' align="center"><input type="submit" onclick="loadlayer();" value='确认' class="layui-btn layui-btn-normal">
            <input type="button"  onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'></td>
        </tr>
      </table>
      <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
      <input name="uid" value="0" type="hidden">
    </form>
  </div>
</div>
<div id="infobox2"  style="display:none; width: 380px; ">
  <form class="layui-form" action="index.php?m=train_member&c=status" target="supportiframe" method="post" id="formstatus">
    <table cellspacing='1' cellpadding='1' class="admin_examine_table">
      <tr>
        <th width="80">审核操作：</th>
        <td align="left"><div class="layui-form-item">
            <div class="layui-input-block">
              <div class="admin_examine_right" style="width:300px;">
                <input name="status" id="status0" value="0" title="未审核" type="radio"/>
                <input name="status" id="status1" value="1" title="已审核" type="radio"/>
                <input name="status" id="status3" value="3" title="未通过" type="radio"/>
              </div>
            </div>
          </div>
         </td>
      </tr>
      <tr>
        <th>审核说明：</th>
        <td align="left"><textarea id="statusbody" name="statusbody" class="admin_explain_textarea"></textarea></td>
      </tr>
      <tr>
        <td colspan='2' align="center"><input type="submit" onclick="loadlayer();" value='确认' class="layui-btn layui-btn-normal">
          <input type="button"  onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'>
      </tr>
    </table>
    <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
    <input name="uid" value="0" type="hidden">
  </form>
</div>
<div class="infoboxp">
  <div class="admin_new_tip">
<a href="javascript:;" class="admin_new_tip_close"></a>
<a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
    <div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
    <div class="admin_new_tip_list_cont">
      <div class="admin_new_tip_list">该页面展示了网站所有的培训会员信息，可对培训会员进行审核删除操作。</div>
      <div class="admin_new_tip_list">可输入名称关键字进行搜索，也可进行详细的高级搜索。</div>
    </div>
  </div>
  <div class="clear"></div>
  <div class="admin_new_search_box">
    <form  action="index.php" name="myform" method="get">
      <input name="m" value="train_member" type="hidden"/>
      <div class="admin_new_search_name">搜索类型：</div>
      <div class="admin_Filter_text formselect" did='dtype'>
        <input type="button" value="{yun:}if $smarty.get.type=='1'||$smarty.get.type==''{/yun}用户名 {yun:}elseif $smarty.get.type=='2'{/yun}机构名称{yun:}elseif $smarty.get.type=='3'{/yun}EMAIL{yun:}elseif $smarty.get.type=='4'{/yun}手机号{yun:}/if{/yun}" class="admin_Filter_but" id="btype">
        <input type="hidden" name="type" id="type" value="{yun:}if $smarty.get.type{/yun}{yun:}$smarty.get.type{/yun}{yun:}else{/yun}1{yun:}/if{/yun}"/>
        <div class="admin_Filter_text_box" style="display:none" id='dtype'>
          <ul>
            <li><a href="javascript:void(0)" onClick="formselect('1','type','用户名')">用户名</a></li>
            <li><a href="javascript:void(0)" onClick="formselect('2','type','机构名称')">机构名称</a></li>
            <li><a href="javascript:void(0)" onClick="formselect('3','type','EMAIL')">EMAIL</a></li>
            <li><a href="javascript:void(0)" onClick="formselect('4','type','手机号')">手机号</a></li>
          </ul>
        </div>
      </div>
      <input type="text" placeholder="输入你要搜索的关键字" value="{yun:}$smarty.get.keyword{/yun}" name='keyword' class="admin_Filter_search">
      <input type="submit" name='search'  value="搜索" class="admin_Filter_bth">
      <a  href="javascript:void(0)" onclick="$('.admin_screenlist_box').toggle();"   class="admin_new_search_gj">高级搜索</a>
    </form>
    {yun:}include file="admin/admin_search.htm"{/yun} </div>
  <div class="clear"></div>
  <div class="table-list">
    <div class="admin_table_border">
      <iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
      <form  action="index.php" name="myform" method="get" id='myform' target="supportiframe">
        <input name="m" value="train_member" type="hidden"/>
        <input name="c" value="del" type="hidden"/>
        <table width="100%">
          <thead>
            <tr class="admin_table_top">
              <th><label for="chkall">
                  <input type="checkbox" id='chkAll'  onclick='CheckAll(this.form)'/>
                </label></th>
              <th>{yun:}if $smarty.get.t=="uid" && $smarty.get.order=="asc"{/yun} <a href="{yun:}searchurl order=desc t=uid m=train_member untype='order,t'{/yun}">编号<img src="images/sanj.jpg"/></a>{yun:}else{/yun} <a href="{yun:}searchurl order=asc t=uid m=train_member untype='order,t'{/yun}">编号<img src="images/sanj2.jpg"/></a> {yun:}/if{/yun}</th>
              <th align="left">用户名/机构名称</th>
              
              <th>企业认证</th>
              <th align="left">手机号/EMAIL</th>
              <th>登录/注册</th>
            
             
              <th>状态</th>
              <th>推荐</th>
               <th>重置密码</th>
              <th class="admin_table_th_bg">操作</th>
            </tr>
          </thead>
          <tbody>
          
          {yun:}foreach item=v key=key from=$userrows{/yun}
          <tr align="center" {yun:}if ($key+1)%2=='0'{/yun}class="admin_com_td_bg"{yun:}/if{/yun} id="list{yun:}$v.uid{/yun}">
            <td><input type="checkbox" value="{yun:}$v.uid{/yun}" class="check_all" name='del[]' onclick='unselectall()' rel="del_chk"  email="{yun:}$v.email{/yun}" moblie="{yun:}$v.moblie{/yun}"/></td>
            <td class="ud" style="text-align:center;">{yun:}$v.uid{/yun}</td>
            <td class="ud" align="left">
            <a href="index.php?m=user_member&c=Imitate&uid={yun:}$v.uid{/yun}" target="_blank" class="admin_cz_sc">{yun:}$v.username{/yun}</a>
             {yun:}if $v.status==2{/yun}<img src="../config/ajax_img/suo.png" alt="已锁定" title="已锁定">{yun:}/if{/yun} 
             <div class="mt8">{yun:}$v.train_name{/yun}</div>
             </td>
            <td>
            {yun:}if $v.email_status==1{/yun}
              <img src="../config/ajax_img/1-1.png" title="邮箱已认证" width="20" height="20">
              {yun:}else{/yun} 
              <img src="../config/ajax_img/1-2.png" title="邮箱未认证"width="20" height="20">
              {yun:}/if{/yun}
              {yun:}if $v.moblie_status==1{/yun} 
              <img src="../config/ajax_img/2-1.png" title="手机已认证"width="20" height="20"> 
              {yun:}else{/yun} 
              <img src="../config/ajax_img/2-2.png" title="手机未认证"width="20" height="20"> 
              {yun:}/if{/yun}
              {yun:}if $v.yyzz_status==1{/yun} 
              <img src="../config/ajax_img/3-1.png" title="营业执照已认证"width="20" height="20">
              {yun:}else{/yun} 
              <img src="../config/ajax_img/3-2.png" title="营业执照未认证"width="20" height="20">
              {yun:}/if{/yun}</td>
            <td class="ud" align="left"> 
            {yun:}if $v.email{/yun}
              <div > 
            <div class=""><span class="admin_new_sj">{yun:}if $v.moblie{/yun}
              
              {yun:}$v.moblie{/yun}
              {yun:}if $moblie_promiss{/yun}<span onClick="send_moblie('{yun:}$v.moblie{/yun}');" style="color:green;cursor:pointer;">发信息</span>{yun:}/if{/yun} 
              {yun:}/if{/yun}</span></div>
              <div class="mt8">
              <span class="admin_new_yx">
                {yun:}$v.email{/yun}
                {yun:}if $email_promiss{/yun}<span onClick="send_email('{yun:}$v.email{/yun}');" style="color:green; cursor:pointer;">发邮件</span>{yun:}/if{/yun} 
              {yun:}/if{/yun}</div></div> </td>
            <td>
            
            
            
            {yun:}if $v.login_date!=""{/yun}{yun:}$v.login_date|date_format:"%Y-%m-%d"{/yun}
              
              {yun:}else{/yun}<font color="#FF0000">从未登录</font>{yun:}/if{/yun}
              
              <div class="mt8">{yun:}$v.reg_date|date_format:"%Y-%m-%d"{/yun}</div>
              
              </td>
          
            <td>{yun:}if $v.status==1{/yun}<span class="admin_com_Audited">已审核</span>{yun:}elseif $v.status==0{/yun}<span class="admin_com_noAudited">未审核</span>{yun:}elseif $v.status==3{/yun}<span class="admin_com_tg">未通过</span>{yun:}else{/yun}<span class="admin_com_Lock">锁定</span>{yun:}/if{/yun}</td>
            <td id="rec{yun:}$v.uid{/yun}">{yun:}if $v.rec=="1"{/yun}<a href="javascript:void(0);" onClick="rec_up('index.php?m=train_member&c=rec','{yun:}$v.uid{/yun}','0','rec');"><img src="../config/ajax_img/doneico.gif"></a>{yun:}else{/yun}<a href="javascript:void(0);" onClick="rec_up('index.php?m=train_member&c=rec','{yun:}$v.uid{/yun}','1','rec');"><img src="../config/ajax_img/errorico.gif"></a>{yun:}/if{/yun} </td>  <td><a href="javascript:void(0);" onClick="resetpw('{yun:}$v.username{/yun}','{yun:}$v.uid{/yun}');" class="admin_company_xg_icon">重置密码</a></td>
            <td>
              <div class="admin_new_bth_c">
            <a href="javascript:void(0);" class="user_status admin_new_c_bth admin_new_c_bthsh" pid="{yun:}$v.uid{/yun}" status="{yun:}$v.status{/yun}">审核</a>
            <a href="javascript:void(0);" class="status admin_new_c_bth admin_new_c_bthsd" pid="{yun:}$v.uid{/yun}" status="{yun:}$v.status{/yun}">锁定 </a>
            </div>
            <a href="index.php?m=train_member&c=edit&id={yun:}$v.uid{/yun}" class="admin_new_c_bth">修改</a> 
            <a href="javascript:void(0);" onClick="layer_del('确定要删除？','index.php?m=train_member&c=del&del={yun:}$v.uid{/yun}');"class="admin_new_c_bth admin_new_c_bth_sc">删除</a></td>
          </tr>
          {yun:}/foreach{/yun}
          <tr style="background:#f1f1f1;">
            <td align="center"><input type="checkbox" id='chkAll2' onclick='CheckAll2(this.form)' /></td>
            <td colspan="4" ><label for="chkAll2">全选</label> &nbsp;
            <input class="admin_button" type="button" name="delsub" value="删除所选"  onclick="return really('del[]')"/>
              <input class="admin_button" type="button" name="delsub" value="批量审核" onClick="audall();" />
              {yun:}if $email_promiss{/yun}
              <input class="admin_button" type="button" value="发邮件"  onclick="return confirm_email('确定发邮件吗？','email_div')"/>
              {yun:}/if{/yun}
              {yun:}if $moblie_promiss{/yun}
              <input class="admin_button" type="button" value="发信息"  onclick="return confirm_email('确定发信息吗？','moblie_div')"/>
              {yun:}/if{/yun} </td>
            <td colspan="10" class="digg">{yun:}$pagenav{/yun}</td>
          </tr>
            </tbody>
          
        </table>
        <input type="hidden" name="pytoken" id='pytoken'  value="{yun:}$pytoken{/yun}">
      </form>
    </div>
  </div>
</div>
{yun:}include file="$adminstyle/checkdomain.htm"{/yun} 
<script type="text/javascript">
  layui.use(['layer', 'form'], function(){
    var layer = layui.layer
    ,form = layui.form
    ,$ = layui.$;
  });

</script>
</body>
</html>